
import 'package:flutter/material.dart';

class IconActionBottom extends StatelessWidget {
  const IconActionBottom({Key? key, required this.icon, required this.label, this.onPressed}) : super(key: key);
  final Icon icon;
  final Text label;
  final void Function()? onPressed;

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: () => onPressed?.call(),
      child: Row(
        children: [
          icon,
          const SizedBox(width: 8,),
          label
        ],
      ),
    );
  }
}